package com.zm.demo.spring.tx.service;

import com.zm.demo.spring.tx.po.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {


    int insertUser(User entity);
    List<User> getUsers();
    int updateById(User entity);
    int updateBatch(List<User> users);
    int updateBatch1(List<User> users);
}
